package oop.exer1;

/**
 * Created with IntelliJ IDEA.
 * ClassName: PersonTest
 * Package: oop.exer1
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-10
 * Time: 22:29
 */

public class PersonTest {
    public static void main(String[] args) {


        Person p1 = new Person();
        p1.name = "Tom";
        p1.age = 12;
        p1.gender = '男';

        p1.study();
        System.out.println(p1.showAge());
        p1.addAge(1);
        System.out.println(p1.showAge());



        Person p2 = new Person();
        p2.addAge(10);
        System.out.println(p2.showAge());

    }
}
